<?php
return array(
	'searchColumns' => array(
		'title',
		'departure_city',
		'selectTime' => array('dropDownList',Yii::app()->enum->options('selectTime')),
		'provider_id' => array('dropDownList',Yii::app()->enum->options('worker.hotelProvider'),
			'visible' => "Yii::app()->adminUser->role != AdminUser::ROLE_PROVIDER",
		),
		'status' => array('dropDownList',$model->stateHandle->options()),
		'listing_status' => array('dropDownList',$model->listingStateHandle->options()),
	),
	'dataColumns' => array(
		'id', 'title', array(
			'name' => 'provider.worker_name',
			'visible' => Yii::app()->adminUser->role != AdminUser::ROLE_PROVIDER,
		),
		array(
			'name' => '建团日期及规则',
			'value' => 'CHtml::value($data,"buildRule.ruleTitle")',
			'type' => 'raw'
		),
		'create_time',
		array(
			'name' => 'status',
			'value' => '$data->stateHandle->lookup()'
		),
		array(
			'name' => 'listing_status',
			'value' => '$data->listingStateHandle->lookup()'
		),
		array(
			'header' => '操作',
			'class' => 'ButtonColumn',
			'stateHandles' => array(
				'stateHandle', 'listingStateHandle',
			),
		),
	),
	'_import' => array(
		array('*', 'actions.admin//*'),
	),
);
?>